<?php

include_once("../model/Model.php");
$comment = $_POST['textarea3'];
$title = $_POST['audioTitle'];
$privacy = $_POST['Radio12'];
$category = $_POST['testinput'];
if($title == "")
{
	$title = $_FILES['file']['name'];
}
$ext = end(explode(".", $_FILES['file']['name']));
$model = new Model();
$ans = $model->musicFileUpload(urlencode($comment),urlencode($title),$ext,$privacy,$category);

echo  "<script>top.uploadComplete('".$ans."','".$title."','".$comment."','".$privacy."','".$category."');</script>";


?>
